import request from '@/utils/request'


export function getPaperList(params) {
    return request({
        url: '/server/practice/paperList',
        method: 'get',
        params
    })
}


// export function getRecordList(params) {
//     return request({
//         url: '/server/practice/recordList',
//         method: 'get',
//         params
//     })
// }

// 查询考试成绩
export function getRecordList(query) {
    return request({
        url: '/manager/examinationRecord/list',
        method: 'get',
        params: query
    })
}


export function getMyExamInfo(params) {
    return request({
        url: '/server/registration/approve/info',
        method: 'get',
        params
    })
}

export function getRoomList(params) {
    return request({
        url: '/server/registration/room/list',
        method: 'get',
        params
    })
}

export function getBatchList(params) {
    return request({
        url: '/server/registration/batch/list',
        method: 'get',
        params
    })
}

export function updateApprove(data) {
    return request({
        url: '/server/registration/approve/update',
        method: 'PUT',
        data
    })
}
